<template>
  <footer>
    <el-button size="mini">添加</el-button>
    <el-button size="mini" type="danger">删除</el-button>
    <el-button size="mini" @click="toggleFlag()">{{ flag ? "浏览" : "复习" }}</el-button>
  </footer>
</template>

<script>
export default {
  name: "VFooter",
  data() {
    return {
      flag: true,
    };
  },
  methods: {
    toggleFlag() {
      this.flag = !this.flag;
    },
  },
};
</script>

<style lang="less" scoped>
footer {
  height: 50px;
}
</style>